package day03;

public class OperDemo5 {
    public static void main(String[] args) {
        int age=40;
        System.out.println("我今年"+age+"岁了");
        String name ="WKJ"; //声明字符串变量name
        System.out.println("大家好，我叫"+name+"，今年"+age+"了");
        System.out.println(10+20+""+10);//10+20=30 30与""相连变成字符串30 3010---String
        System.out.println(""+10+20+30);//102030---String
        System.out.println(10+20+30+"");//60---String
        //任何类型的数据与字符串连接运算符都会变成字符串


    }
}
